package com.xl.sst.biz.impl;



import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.xl.sst.biz.DesiredClassBiz;
import com.xl.sst.dao.DesiredClassDao;
import com.xl.sst.vo.DesiredClass;
import com.xl.sst.vo.Page;

/*
 * 需求类别   业务层
 */
@Service
public class DesiredClassBizImpl implements DesiredClassBiz{

	@Resource
	private DesiredClassDao desiredClassDao;
	public DesiredClassDao getDesiredClassDao() {
		return desiredClassDao;
	}
	public void setDesiredClassDao(DesiredClassDao desiredClassDao) {
		this.desiredClassDao = desiredClassDao;
	}
	//添加需求类别
	public boolean add(DesiredClass d) {
		return desiredClassDao.add(d)==1?true:false;
	}
	//修改需求类别
	public boolean update(DesiredClass d) {
		return desiredClassDao.update(d)==1?true:false;
	}
	//删除需求类别
	public int delete(DesiredClass d) {
		return desiredClassDao.delete(d);
	}
	//根据caseId为0查询需求大类别	
	public List<DesiredClass> selectBig(DesiredClass d) {
		return desiredClassDao.selectBig(d);
	}
	//根据caseId不为0自查询需求小类别	
	public List<DesiredClass> selectSmall(Page d) {
		return desiredClassDao.selectSmall(d);
	}
}
